/*
 * Copyright (C) 2012 VinaVAC. All rights reserved.
 */
package org.vinavac.mob.mbean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.vinavac.bean.AbstractSessionBean;
import org.vinavac.bean.VillageSessionBean;
import org.vinavac.entity.Village;

/**
 *
 * @author Quang <quangtin3@gmail.com>
 */
@ManagedBean(name = "villageMobileBean")
@SessionScoped
public class VillageMobileBean extends AbstractMobileBean<Village> {

    @EJB
    private VillageSessionBean ejbSessionBean;

    public VillageMobileBean() {
        super();
    }

    @Override
    protected Village emptyEntity() {
        return new Village();
    }

    @Override
    protected AbstractSessionBean<Village> getSessionBean() {
        return ejbSessionBean;
    }
}
